import request from '@/utils/request'

/**
 * 获取班次分页查询
 * @param query
 */
export function classSystem(data) {
  return request({
    url: `/pp/p/classSystem/query`,
    method: 'post',
    data
  })
}

/**
 * 查询班次单条数据
 * @param getById
 */
export function inquireClassSystem(id) {
  return request({
    url: `/pp/p/classSystem/getById/${id}`,
    method: 'get'
  })
}
/**
 * 保存
 * @param save
 */
export function saveClassSystem(data) {
  return request({
    url: `/pp/p/classSystem/save`,
    method: 'put',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteClassSystem(data) {
  return request({
    url: `/pp/p/classSystem/delete`,
    method: 'delete',
    data
  })
}

/**
 * 获取班次分页查询
 * @param query
 */
export function classFrequency(data) {
  return request({
    url: `/pp/p/classFrequency/query`,
    method: 'post',
    data
  })
}

/**
 * 查询班次单条数据
 * @param getById
 */
export function inquireClassFrequency(id) {
  return request({
    url: `/pp/p/classFrequency/getById/${id}`,
    method: 'get'
  })
}
/**
 * 保存
 * @param save
 */
export function saveClassFrequency(data) {
  return request({
    url: `/pp/p/classFrequency/save`,
    method: 'put',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteClassFrequency(data) {
  return request({
    url: `/pp/p/classFrequency/delete`,
    method: 'delete',
    data
  })
}

/**
 * 获取班次休息分页查询
 * @param query
 */
export function classShiftBreak(data) {
  return request({
    url: `/pp/p/classShiftBreak/query`,
    method: 'post',
    data
  })
}

/**
 * 查询班次休息单条数据
 * @param getById
 */
export function inquireClassShiftBreak(id) {
  return request({
    url: `/pp/p/classShiftBreak/getById/${id}`,
    method: 'get'
  })
}
/**
 * 保存
 * @param save
 */
export function saveClassShiftBreak(data) {
  return request({
    url: `/pp/p/classShiftBreak/save`,
    method: 'put',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteClassShiftBreak(data) {
  return request({
    url: `/pp/p/classShiftBreak/delete`,
    method: 'delete',
    data
  })
}
